<?php /* Smarty version 2.6.16, created on 2013-08-23 19:16:45
         compiled from ../templates/admin/settings/manage_images.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'base64_encode', '../templates/admin/settings/manage_images.tpl', 67, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_start'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_end'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<?php echo '<script type="text/javascript" src="';  echo $this->_tpl_vars['siteroot'];  echo '/includes/js/admin/checkall.js" /></script>'; ?>


<?php echo '
	<script type="text/javascript">
    $(function(){
    	$(".someClass").tipTip();
    });
    
    $(function(){
    	$(".someClass").tipTip({maxWidth: "auto", edgeOffset: 10});
    });
    </script>
'; ?>

<div class="contain">
    <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['left_menu'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
    <div class="right_contain">
        <div class="heading_box">
            Manage Logo Images 
            <a href="javascript:;" class="someClass" title="<?php echo $this->_tpl_vars['moduelArray']['module_help_text']; ?>
" style="float:right;">
                <img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/admin/img/topic_icon6.png" />
            </a>
        </div>
        <div class="whitebox">
            <!--Message Div Start-->
            <?php if ($this->_tpl_vars['msg']): ?>
                <div class="masg_div"><?php echo $this->_tpl_vars['msg']; ?>
</div>
            <?php endif; ?>
            <!--Message Div End-->
            
            <div>
            	<!--Form Contain start-->
                <div class="table_viewbox">
                    <!--<h2>Table Design</h2>-->
                    <form name="searchFrm" id="searchFrm" method="post" action="<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=manageusers">
                        <table width="100%" border="0" cellpadding="3" cellspacing="5">
                            <tr>
                                <td align="left">
                                    <input type="button" name="add" id="add" value="Add Logo Image" class="admin_btn" onclick="javascript: window.location='<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=addImage';" />
                                	<!--<input type="button" name="add" id="add" value="Add New User" class="admin_btn" onclick="javascript: window.location='<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=addnewuser';" />-->
                                    &nbsp;
                                </td>
                                <!--<td align="right"><input type="text" name="search" id="search" class="input41" value="<?php if ($this->_tpl_vars['search'] != ''):  echo $this->_tpl_vars['search'];  else: ?>Email<?php endif; ?>" onfocus="this.value=''" onblur="if(this.value=='')this.value='Email'" />&nbsp;<input type="submit" name="add" id="add" value="Search" class="admin_btn" />&nbsp;<input type="button" name="add" id="add" value="Clear" class="admin_btn" onclick="javascript: window.location='<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=manageusers';" /></td>-->
                            </tr>
                        </table>
                    </form>
                    <form name="frm" id="frm" action="" method="post" >
                        <input type="hidden" name="hidden_pageno" id="hidden_pageno" value="<?php echo $this->_tpl_vars['page']; ?>
" />
                        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_viewbox">
                            <tr>
                                <th width="5%" style="text-align:center;">#</th>
                                <th width="60%">Logo</th>
                                <th width="30%">Action</th>
                            </tr>
                            <?php if ($this->_tpl_vars['imageArray']): ?>
                                <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['imageArray']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
                                    <tr class="inactiverow" id="tr_<?php echo $this->_tpl_vars['imageArray'][$this->_sections['i']['index']]['id']; ?>
">
                                        <td align="center"><?php echo $this->_tpl_vars['newid']; ?>
</td>
                                        <td><?php echo $this->_tpl_vars['imageArray'][$this->_sections['i']['index']]['image_name']; ?>
</td>
                                        <td>
                                            <span>
                                                <?php if ($this->_tpl_vars['imageArray'][$this->_sections['i']['index']]['status'] == '1'): ?>
                                                        <a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=manageimages&id=<?php echo ((is_array($_tmp=$this->_tpl_vars['imageArray'][$this->_sections['i']['index']]['image_id'])) ? $this->_run_mod_handler('base64_encode', true, $_tmp) : smarty_modifier_base64_encode($_tmp)); ?>
&action=status&status=<?php echo $this->_tpl_vars['imageArray'][$this->_sections['i']['index']]['status']; ?>
&page=<?php echo $this->_tpl_vars['page']; ?>
" onclick="javascript:return confirm('Are you sure do you want to change status?');" title="Currently Active"><img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/admin/img/icon_correct.png" /></a>
                                                <?php else: ?>
                                                        <a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=manageimages&id=<?php echo ((is_array($_tmp=$this->_tpl_vars['imageArray'][$this->_sections['i']['index']]['image_id'])) ? $this->_run_mod_handler('base64_encode', true, $_tmp) : smarty_modifier_base64_encode($_tmp)); ?>
&action=status&status=<?php echo $this->_tpl_vars['imageArray'][$this->_sections['i']['index']]['status']; ?>
&page=<?php echo $this->_tpl_vars['page']; ?>
" onclick="javascript:return confirm('Are you sure do you want to change status?');" title="Currently Inactive"><img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/admin/img/close.png" /></a>
                                                <?php endif; ?>
                                            </span>
                                        	<span><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=imagedetails&id=<?php echo ((is_array($_tmp=$this->_tpl_vars['imageArray'][$this->_sections['i']['index']]['image_id'])) ? $this->_run_mod_handler('base64_encode', true, $_tmp) : smarty_modifier_base64_encode($_tmp)); ?>
&page=<?php echo $this->_tpl_vars['page']; ?>
"><img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/admin/img/icon-search.png" title="Image Details" /></a></span>
                                            <span><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=manageimages&id=<?php echo ((is_array($_tmp=$this->_tpl_vars['imageArray'][$this->_sections['i']['index']]['image_id'])) ? $this->_run_mod_handler('base64_encode', true, $_tmp) : smarty_modifier_base64_encode($_tmp)); ?>
&action=delete&page=<?php echo $this->_tpl_vars['page']; ?>
" title="Delete Logo"><img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/admin/img/icon-delete.png" onclick="javascript:return confirm('Are you sure do you want to delete this record?');" /></a></span>
                                        </td>
                                    </tr>
                                    <div style="display:none"><?php echo $this->_tpl_vars['newid']++; ?>
</div>
                                <?php endfor; endif; ?>
                            <?php else: ?>
                                <tr>
                                    <td colspan="3" align="center" class="error">Record Not Found</td>
                                </tr>
                            <?php endif; ?>
                            <tr>
                                <td colspan="3">
                                    <div class="pagination">
                                        <?php if ($this->_tpl_vars['pagination']):  echo $this->_tpl_vars['pagination'];  endif; ?>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </form>
                </div>
            	<!--Form Contain end--> 
            </div>
        </div>
    </div>
    <div class="clear"></div>
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['footer'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>